<!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>党建网</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../assets/css/amazeui.css" />
    <link rel="stylesheet" href="../../assets/css/admin.css">
    <link rel="stylesheet" href="../../css/index.css">
<style>
.am-list-item-dated div{
width:250px;
text-overflow:ellipsis;
overflow:hidden;
white-space:nowrap;
}
a{
cursor:pointer;
}
</style>
</head>

<body>
    <!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

    <div class="content">

        <!--nav-div-->
        <div id="nav-bar" class="nav-bar"></div>
        <!--nav-div-->

        <div id="img-div"></div>

        <!--left-->
        <div id="left-div" class="left-div"></div>
        <!--left-->

        <!--content-->
        <div id="content-div" class="content-div">
            <div class="content-search-div">
                <label>标题搜索</label>
                <input type="text" placeholder="输入要查询的标题关键字" style="margin:0px 10px" id="seaVal">
                <button type="button" class="am-btn am-btn-default am-round am-btn-xs" id="search">搜索</button>
            </div>
            <div style="float:left;width:300px;">
               
                <div class="content-left-div">
                    <div data-am-widget="intro" class="am-intro am-cf am-intro-default">
                        <div class="am-intro-hd" style="background:red">
                            <h2 class="am-intro-title">党建动态</h2>
                            <a class="am-intro-more am-intro-more-top " href="../parTre/parTre.html">更多</a>
                        </div>
                        <div class="am-g am-intro-bd">
                            <ul id="parTre">
                                
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="content-left-div">
                    <div data-am-widget="intro" class="am-intro am-cf am-intro-default">
                        <div class="am-intro-hd" style="background:red">
                            <h2 class="am-intro-title">创先争优</h2>
                            <a class="am-intro-more am-intro-more-top " href="../innoGood/innoGood.html">更多</a>
                        </div>
                        <div class="am-g am-intro-bd">
                            <ul id="innoGood">
                                
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="content-con-div"></div>
            <div style="float:right;width:300px;">
               
                <div class="content-right-div">
                    <div data-am-widget="intro" class="am-intro am-cf am-intro-default">
                        <div class="am-intro-hd" style="background:red">
                            <h2 class="am-intro-title">网上党校</h2>
                            <a class="am-intro-more am-intro-more-top " href="../onlSch/onlSch.html">更多</a>
                        </div>
                        <div class="am-g am-intro-bd">
                            <ul id="onlSch">
                                
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="content-right-div">
                    <div data-am-widget="intro" class="am-intro am-cf am-intro-default">
                        <div class="am-intro-hd" style="background:red">
                            <h2 class="am-intro-title">党建视频</h2>
                            <a class="am-intro-more am-intro-more-top " href="../parVideo/pVideo.html">更多</a>
                        </div>
                        <div class="am-g am-intro-bd">
                            <ul id="parVideo">
                               
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--content-->


        <!--right-->
        <div id="right-div" class="right-div"></div>
        <!--right-->
    </div>
    <!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

    <!--[if (gte IE 9)|!(IE)]><!-->
    <script src="../../assets/js/jquery.min.js"></script>
    <!--<![endif]-->
    <script src="../../assets/js/amazeui.min.js"></script>
    <script src="../../js/prevHeader.js"></script>
    <script src="../../js/jquery.zlight.menu.1.0.min.js"></script>
<script src="../../js/index.js"></script>
<script src="../../js/global.js"></script>
    <script>
        
        $("#search").on("click",function(){
            var val = $("#seaVal").val();
            if(val!=""){
            	setCookie("val",val);
            window.location.href = "search.html";
            }
        })
        
        $(document).ready(function(){
           $.ajax({
      			type : "GET",
      			url : "/partyBuilding/article/mcol/1",
      			contentType : "application/json",
      			dataType : "json",
      			success : function(data) {
      				//alert(JSON.stringify(data));
      				
      				if(data.code == "200") {
      					$("#parTre").html("");
      					
      					$.each(data.article, function(num, articles) {
      						if(articles.fkScol=="1"){
      		                 $("#parTre").append('<li class="am-g am-list-item-dated">'+
      		          '<div><a onclick="notCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a><div>'+
      		          '</li>');}
      						else{
      							$("#parTre").append('<li class="am-g am-list-item-dated">'+
      			      		          '<div><a onclick="newsCont(this)" title="'+articles.artTitle+'" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a></div>'+
      			      		          '</li>');
      						}
      						if(num==10) return false;
      		            })
      		            onlSch();
      				}
      			},
      			error : function() {
      				
      			}
      		});  
        })
        
 function onlSch(){
        	$.ajax({
      			type : "GET",
      			url : "/partyBuilding/article/mcol/3",
      			contentType : "application/json",
      			dataType : "json",
      			success : function(data) {
      				//alert(JSON.stringify(data));
      				
      				if(data.code == "200") {
      					$("#onlSch").html("");
      					$.each(data.article, function(num, articles) {
      						if(articles.fkScol=="7"){
      		                 $("#onlSch").append('<li class="am-g am-list-item-dated">'+
      		          '<div><a onclick="testCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a></div>'+
      		          '</li>');}
      						else if(articles.fkScol=="8"){
         		                 $("#onlSch").append('<li class="am-g am-list-item-dated">'+
         		          '<div><a onclick="fabCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a></div>'+
         		          '</li>');}
      						else if(articles.fkScol=="9"){
         		                 $("#onlSch").append('<li class="am-g am-list-item-dated">'+
         		          '<div><a onclick="litCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a></div>'+
         		          '</li>');}
      						else{
         		                 $("#onlSch").append('<li class="am-g am-list-item-dated">'+
         		          '<div><a onclick="conCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a></div>'+
         		          '</li>');}
      						if(num==10) return false;
      						
      		            })
      		            innoGood();
      				}
      			},
      			error : function() {
      				
      			}
      		});  
        }
function innoGood(){
	$.ajax({
			type : "GET",
			url : "/partyBuilding/article/mcol/2",
			contentType : "application/json",
			dataType : "json",
			success : function(data) {
				//alert(JSON.stringify(data));
				
				if(data.code == "200") {
					$("#innoGood").html("");
					$.each(data.article, function(num, articles) {
						if(articles.fkScol=="4"){
		                 $("#innoGood").append('<li class="am-g am-list-item-dated">'+
		          '<div><a onclick="leaCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a></div>'+
		          '</li>');}
						else if(articles.fkScol=="5"){
		                 $("#innoGood").append('<li class="am-g am-list-item-dated">'+
		       		          '<div><a onclick="actCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a></div>'+
		       		          '</li>');}
						else{
		                 $("#innoGood").append('<li class="am-g am-list-item-dated">'+
		          '<div><a onclick="chaCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a></div>'+
		          '</li>');}
						if(num==10) return false;
		            });
					parVideo();
				}
			},
			error : function() {
				
			}
		});  
}
function parVideo(){
	$.ajax({
		type : "GET",
		url : "/partyBuilding/vedio/mcol/5/curPage/1/pageSize/6",
		contentType : "application/json",
		dataType : "json",
		success : function(data) {
			//alert(JSON.stringify(data));
			
			if(data.code == "200") {
				$("#parVideo").html("");
				$.each(data.vedios, function(num, vedios) {
					if(vedios.fkScol=="11"){
	                 $("#parVideo").append('<li class="am-g am-list-item-dated">'+
	          '<div><a onclick="repCont(this)" pkVedio="'+vedios.pkVedio+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+vedios.vedioTitle+'</a></div>'+
	          '</li>');}
					else{
						$("#parVideo").append('<li class="am-g am-list-item-dated">'+
						          '<div><a onclick="hisCont(this)" pkVedio="'+vedios.pkVedio+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+vedios.vedioTitle+'</a></div>'+
						          '</li>');
					}
					if(num==10) return false;
	            })
			}
		},
		error : function() {
			
		}
	});  
}
    </script>

</body>

</html>